<?php

/**
 * This is the model class for table "category_information".
 *
 * The followings are the available columns in table 'category_information':
 * @property integer $id ID
 * @property integer $parent_id 父级id
 * @property string $title 分类名称
 * @property integer $layer Layer
 * @property integer $right_num 右值
 * @property integer $left_num 左值
 */
class CategoryInformation extends ActiveRecord
{
	/**
	 * 旅游
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_TRAVEL = 2;
	/**
	 * 酒店
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_HOTEL = 3;
	/**
	 * 景区
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_SCENIC = 4;
	/**
	 * 票务
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_TICKET = 5;
	/**
	 * 土特产
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_NATIVE = 6;
	/**
	 * 自驾快讯
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_ZJY_NEWS = 12;
	/**
	 * 汽车新闻
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_ZJY_CAR = 13;
	/**
	 * 业界动态
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_ZJY_INDUSTRY = 14;
	/**
	 * 最新公告
	 * Enter description here ...
	 * @var unknown_type
	 */
	const TYPE_POST = 15;
	/**
	 * Returns the static model of the specified AR class.
	 * @return CategoryInformation the static model class
	 */
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
	
	public function getMdcClass() {
		return 'application.models.metadata.CategoryInformationMetadata';
	}
}